package com.neuedu.javase.operation;

/**
 * @author :金山老师
 * date    :  2025/10/16 14:39
 * project  : MyJavaSE
 * 描述      ： 关系运算
 */
public class OperationCompare {


    //CTRL + ALT + L
    //按住 SHIFT 敲字母
    public static void main(String[] args) {

        int numa = 10;
        int numb = 5;
        int numc = 5;

        System.out.println("numa = " + numa);
        System.out.println("numb = " + numb);
        System.out.println("numc = " + numc);

        boolean isEqual = numa == numb;  //false
        System.out.println("isEqual = " + isEqual);


        System.out.println("("+numa+" ==  "+numb+") = " + (numa == numb));
        System.out.println("("+numa+" >   "+numb+") = " + (numa > numb));
        System.out.println("("+numa+" <   "+numb+") = " + (numa < numb));
        System.out.println("("+numa+" >=  "+numb+") = " + (numa >= numb));
        System.out.println("("+numa+" <=  "+numb+") = " + (numa <= numb));
        System.out.println("("+numa+" !=  "+numb+") = " + (numa !=  numb));






    }


}
